(window.webpackJsonp = window.webpackJsonp || []).push([
[6],
{
144: function (t, e, n) {
"use strict";
n.d(e, "a", function () {
return i;
}),
n.d(e, "c", function () {
return o;
}),
n.d(e, "b", function () {
return s;
});
var r = { sm: 768, md: 1024, lg: 1280, xl: 1400 },
i = function () {
return window
.getComputedStyle(document.querySelector("body"), ":before")
.getPropertyValue("content")
.replace(/"/g, "");
};
function o(t) {
var e =
arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : r;
if (!Object.prototype.hasOwnProperty.call(e, t))
throw new Error(
"size must be one of: ".concat(Object.keys(e).join(", "))
);
return window.innerWidth < e[t];
}
function s(t) {
var e =
arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : r;
if (!Object.prototype.hasOwnProperty.call(e, t))
throw new Error(
"size must be one of: ".concat(Object.keys(e).join(", "))
);
return window.innerWidth >= e[t];
}
},
203: function (t, e) {
var n,
r,
i = (t.exports = {});
function o() {
throw new Error("setTimeout has not been defined");
}
function s() {
throw new Error("clearTimeout has not been defined");
}
function a(t) {
if (n === setTimeout) return setTimeout(t, 0);
if ((n === o || !n) && setTimeout)
return (n = setTimeout), setTimeout(t, 0);
try {
return n(t, 0);
} catch (e) {
try {
return n.call(null, t, 0);
} catch (e) {
return n.call(this, t, 0);
}
}
}
!(function () {
try {
n = "function" == typeof setTimeout ? setTimeout : o;
} catch (t) {
n = o;
}
try {
r = "function" == typeof clearTimeout ? clearTimeout : s;
} catch (t) {
r = s;
}
})();
var c,
u = [],
l = !1,
d = -1;
function h() {
l &&
c &&
((l = !1), c.length ? (u = c.concat(u)) : (d = -1), u.length && f());
}
function f() {
if (!l) {
var t = a(h);
l = !0;
for (var e = u.length; e; ) {
for (c = u, u = []; ++d < e; ) c && c[d].run();
(d = -1), (e = u.length);
}
(c = null),
(l = !1),
(function (t) {
if (r === clearTimeout) return clearTimeout(t);
if ((r === s || !r) && clearTimeout)
return (r = clearTimeout), clearTimeout(t);
try {
r(t);
} catch (e) {
try {
return r.call(null, t);
} catch (e) {
return r.call(this, t);
}
}
})(t);
}
}
function v(t, e) {
(this.fun = t), (this.array = e);
}
function m() {}
(i.nextTick = function (t) {
var e = new Array(arguments.length - 1);
if (arguments.length > 1)
for (var n = 1; n < arguments.length; n++) e[n - 1] = arguments[n];
u.push(new v(t, e)), 1 !== u.length || l || a(f);
}),
(v.prototype.run = function () {
this.fun.apply(null, this.array);
}),
(i.title = "browser"),
(i.browser = !0),
(i.env = {}),
(i.argv = []),
(i.version = ""),
(i.versions = {}),
(i.on = m),
(i.addListener = m),
(i.once = m),
(i.off = m),
(i.removeListener = m),
(i.removeAllListeners = m),
(i.emit = m),
(i.prependListener = m),
(i.prependOnceListener = m),
(i.listeners = function (t) {
return [];
}),
(i.binding = function (t) {
throw new Error("process.binding is not supported");
}),
(i.cwd = function () {
return "/";
}),
(i.chdir = function (t) {
throw new Error("process.chdir is not supported");
}),
(i.umask = function () {
return 0;
});
},
330: function (t, e, n) {
"use strict";
n.r(e),
n.d(e, "default", function () {
return k;
});
var r = n(757),
i = n(755),
o = n(783),
s = n(762),
a = n(763);
function c(t) {
(t.style.display = "none"), t.offsetHeight, (t.style.display = "");
}
document.addEventListener("DOMContentLoaded", function () {
for (
var t = document.querySelectorAll(".v2-js-repaint"), e = 0;
e < t.length;
e++
)
c(t[e]);
});
var u = n(144),
l = n(761),
d = n(788),
h = n(760),
f = n(784);
function v(t) {
return (v =
"function" == typeof Symbol && "symbol" == typeof Symbol.iterator
? function (t) {
return typeof t;
}
: function (t) {
return t &&
"function" == typeof Symbol &&
t.constructor === Symbol &&
t !== Symbol.prototype
? "symbol"
: typeof t;
})(t);
}
function m(t, e) {
return (
(function (t) {
if (Array.isArray(t)) return t;
})(t) ||
(function (t, e) {
var n =
null == t
? null
: ("undefined" != typeof Symbol && t[Symbol.iterator]) ||
t["@@iterator"];
if (null != n) {
var r,
i,
o,
s,
a = [],
c = !0,
u = !1;
try {
if (((o = (n = n.call(t)).next), 0 === e)) {
if (Object(n) !== n) return;
c = !1;
} else
for (
;
!(c = (r = o.call(n)).done) &&
(a.push(r.value), a.length !== e);
c = !0
);
} catch (t) {
(u = !0), (i = t);
} finally {
try {
if (
!c &&
null != n.return &&
((s = n.return()), Object(s) !== s)
)
return;
} finally {
if (u) throw i;
}
}
return a;
}
})(t, e) ||
(function (t, e) {
if (t) {
if ("string" == typeof t) return p(t, e);
var n = {}.toString.call(t).slice(8, -1);
return (
"Object" === n && t.constructor && (n = t.constructor.name),
"Map" === n || "Set" === n
? Array.from(t)
: "Arguments" === n ||
/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)
? p(t, e)
: void 0
);
}
})(t, e) ||
(function () {
throw new TypeError(
"Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."
);
})()
);
}
function p(t, e) {
(null == e || e > t.length) && (e = t.length);
for (var n = 0, r = Array(e); n < e; n++) r[n] = t[n];
return r;
}
function y(t, e) {
for (var n = 0; n < e.length; n++) {
var r = e[n];
(r.enumerable = r.enumerable || !1),
(r.configurable = !0),
"value" in r && (r.writable = !0),
Object.defineProperty(t, b(r.key), r);
}
}
function b(t) {
var e = (function (t, e) {
if ("object" != v(t) || !t) return t;
var n = t[Symbol.toPrimitive];
if (void 0 !== n) {
var r = n.call(t, e || "default");
if ("object" != v(r)) return r;
throw new TypeError("@@toPrimitive must return a primitive value.");
}
return ("string" === e ? String : Number)(t);
})(t, "string");
return "symbol" == v(e) ? e : e + "";
}
function g(t, e, n) {
return (
(e = w(e)),
(function (t, e) {
if (e && ("object" == v(e) || "function" == typeof e)) return e;
if (void 0 !== e)
throw new TypeError(
"Derived constructors may only return object or undefined"
);
return (function (t) {
if (void 0 === t)
throw new ReferenceError(
"this hasn't been initialised - super() hasn't been called"
);
return t;
})(t);
})(
t,
(function () {
try {
var t = !Boolean.prototype.valueOf.call(
Reflect.construct(Boolean, [], function () {})
);
} catch (t) {}
return (function () {
return !!t;
})();
})()
? Reflect.construct(e, n || [], w(t).constructor)
: e.apply(t, n)
)
);
}
function w(t) {
return (w = Object.setPrototypeOf
? Object.getPrototypeOf.bind()
: function (t) {
return t.__proto__ || Object.getPrototypeOf(t);
})(t);
}
function S(t, e) {
return (S = Object.setPrototypeOf
? Object.setPrototypeOf.bind()
: function (t, e) {
return (t.__proto__ = e), t;
})(t, e);
}
var k = (function (t) {
function e(t) {
var n, r;
if (
((function (t, e) {
if (!(t instanceof e))
throw new TypeError("Cannot call a class as a function");
})(this, e),
(r = g(this, e, [t])).initDomCache(),
(r.selectedNav = null),
(r.isSearchActive = !1),
(r.fetching = { internal: !1, external: !1 }),
(r.lastValidQuery = ""),
r.addEventListeners(),
(r.config = {
breakpoint: 1024,
desktopHeaderHeight: 76,
mobileHeaderHeight: 62,
}),
document.querySelector(".v2-cookie-disclaimer--top"))
) {
var i = r.setNavigationPosition.bind(r);
i(),
r.subscribe("cookie/height/change", i),
Object(l.a)(window, "load", i);
}
return (
null !== (n = r.dom.searchContainer) &&
void 0 !== n &&
n.hasAttribute("data-suggestions") &&
r.setupSearchSuggestions(),
r
);
}
return (
(function (t, e) {
if ("function" != typeof e && null !== e)
throw new TypeError(
"Super expression must either be null or a function"
);
(t.prototype = Object.create(e && e.prototype, {
constructor: { value: t, writable: !0, configurable: !0 },
})),
Object.defineProperty(t, "prototype", { writable: !1 }),
e && S(t, e);
})(e, t),
(function (t, e, n) {
return (
e && y(t.prototype, e),
n && y(t, n),
Object.defineProperty(t, "prototype", { writable: !1 }),
t
);
})(e, [
{
key: "setNavigationPosition",
value: function () {
c(this.dom.header);
var t = document
.querySelector(".v2-cookie-disclaimer")
.getBoundingClientRect().height,
e = t,
n = t;
window.innerWidth < this.config.breakpoint
? ((e += this.config.mobileHeaderHeight),
(n += this.config.mobileHeaderHeight))
: (e += this.config.desktopHeaderHeight),
this.dom.header && (this.dom.header.style.top = t + "px"),
this.dom.navDropdown &&
(this.dom.navDropdown.style.top = n + "px");
var r = window.innerHeight - n;
(this.dom.navDropdown.style.height = r + "px"),
Object(u.c)("md") &&
this.dom.dropdownSearchContainer &&
(this.dom.dropdownSearchContainer.style.height = r + "px"),
(this.element.style.height = e + "px");
},
},
{
key: "handleCloseNavMenu",
value: function () {
this.element.classList.remove("navigation--open"),
this.selectedNav &&
(this.selectedNav.classList.remove("active"),
this.selectedNav.nextElementSibling.classList.remove(
"no-transition"
),
(this.selectedNav = null));
},
},
{
key: "focusSearchInput",
value: function () {
var t = this.dom.searchFormInput;
t.focus(),
Object(s.a)(t, function () {
return t.focus();
});
},
},
{
key: "handleOpenNavMenu",
value: function (t) {
t.stopPropagation();
var e = t.target.closest("span.nav__link");
e &&
(e.classList.contains("active")
? this.handleCloseNavMenu()
: (this.element.classList.add("navigation--open"),
this.selectedNav &&
(this.selectedNav.classList.remove("active"),
this.selectedNav.nextElementSibling.classList.remove(
"no-transition"
),
e.nextElementSibling.classList.add("no-transition")),
(this.selectedNav = e),
this.selectedNav.classList.add("active"),
this.focusSearchInput()));
},
},
{
key: "switchSearchContainers",
value: function (t) {
var e = t.from,
n = t.to;
e && e.classList.add("v2-hidden"),
n && n.classList.remove("v2-hidden");
},
},
{
key: "handleSearch",
value: function (t) {
t.stopPropagation(),
this.element.classList.add("navigation--open"),
this.selectedNav && this.handleCloseNavMenu(),
this.dom.searchContainer.classList.add("active"),
(this.isSearchActive = !0),
this.dom.noresults.classList.add("v2-hidden"),
this.switchSearchContainers({
from: this.dom.results,
to: this.dom.quicklinks,
}),
this.focusSearchInput();
},
},
{
key: "openMobileSubNav",
value: function (t) {
var e = t.target.closest(".nav-trigger");
if (e && !e.classList.contains("nav-link")) {
var n = t.target.closest(".nav-trigger");
this.dom.navItemsContainer.innerHTML = "";
var r = this.element.querySelector("#" + n.dataset.target);
(this.dom.navItemsContainer.innerHTML = r.innerHTML),
this.dom.navDropdown.classList.add("show"),
this.dom.navDropdown.classList.remove("hide");
}
},
},
{
key: "resetToInitialState",
value: function (t) {
t.target.closest(".navigate-back") &&
(this.dom.navDropdown.classList.remove("show"),
this.dom.navDropdown.classList.add("hide"));
},
},
{
key: "handleIconClick",
value: function (t) {
t.target.closest(".icon--menu") &&
(this.element.classList.toggle("mobile-nav"),
this.dom.navDropdown.classList.remove("show"),
document.body.classList.toggle("v2-overflow-hidden")),
t.target.closest(".icon--search") && this.handleSearch(t);
},
},
{
key: "generateSuggestionItemElement",
value: function (t, e) {
var n = document.createElement("div"),
r = e(t),
i = '
')
.concat(r.htmlTitle, "");
return (n.innerHTML = i), n.firstElementChild;
},
},
{
key: "getMarkup",
value: function (t) {
return {
url: t.link,
title: t.title,
htmlTitle: t.htmlTitle,
snippet: t.htmlSnippet,
};
},
},
{
key: "triggerExternalSuggestions",
value: function (t) {
var e = this;
this.dom.externalResults.classList.add("v2-hidden"),
(this.dom.externalResultsList.innerHTML = ""),
this.provider.reset(),
(this.fetching.external = !0),
this.updateLoader();
var n = this.provider.getRequest({ query: t }),
r = this.provider.getOptions();
fetch(n.url, r)
.then(function (t) {
return t.json();
})
.then(function (n) {
var r = e.provider.parseResponse(n);
if (
((e.dom.list = e.dom.externalResultsList),
r.queries.nextPage && Object(h.b)(e.dom.showMoreWrapper),
r.items)
) {
var i = document.createDocumentFragment();
r.items.forEach(function (t) {
return i.appendChild(
e.generateSuggestionItemElement(t, e.getMarkup)
);
}),
e.dom.list.appendChild(i);
} else Object(h.b)(e.dom.noResults);
var o = r.searchInformation.totalResults
? +r.searchInformation.totalResults
: 0;
Object(f.a)(t, o, "All"),
e.dom.externalResultsList.childElementCount &&
e.dom.externalResults.classList.remove("v2-hidden"),
(e.dom.externalViewAll.href = ""
.concat(
e.dom.externalViewAll.dataset.searchCategoryUrl,
"&q="
)
.concat(t));
})
.catch(function (t) {
console.error(t);
})
.finally(function () {
(e.fetching.external = !1),
e.updateLoader(),
c(e.dom.results);
});
},
},
{
key: "triggerInternalSuggestions",
value: function (t) {
var e = this,
n = this.dom.internalResults.dataset,
r = n.serviceurl,
i = n.top,
o = n.culture,
s = n.db,
u = n.env,
l = n.assetids,
d = n.commissiongroupids,
h = n.namecategoryid,
v = n.hideplansdata,
m = Object(a.a)({
keywords: t,
top: i,
culture: o,
db: s,
env: u,
assetids: l,
commissiongroupids: d,
namecategoryid: h,
hideplansdata: v,
});
(this.dom.internalResultsList.innerHTML = ""),
(this.fetching.internal = !0),
this.updateLoader(),
this.dom.internalResults.classList.add("v2-hidden"),
fetch("".concat(r, "?").concat(m))
.then(function (t) {
return t.json();
})
.then(function (n) {
null != n &&
n.Data.length &&
((e.dom.internalResultsList.innerHTML =
e.buildInstrumentMarkup(n.Data)),
(e.dom.internalViewAll.href = ""
.concat(
e.dom.internalViewAll.dataset.searchCategoryUrl,
"&q="
)
.concat(t)),
e.dom.internalResults.classList.remove("v2-hidden"),
Object(f.a)(t, n.Data.length, "Instruments"));
})
.catch(function (t) {
console.error(t);
})
.finally(function () {
(e.fetching.internal = !1),
e.updateLoader(),
c(e.dom.results);
});
},
},
{
key: "updateLoader",
value: function () {
this.fetching.internal || this.fetching.external
? this.dom.spinner.classList.remove("v2-hidden")
: (this.dom.spinner.classList.add("v2-hidden"),
this.dom.externalResultsList.childElementCount +
this.dom.internalResultsList.childElementCount ===
0 &&
(this.dom.noresults.classList.remove("v2-hidden"),
this.switchSearchContainers({
from: this.dom.results,
to: this.dom.quicklinks,
})));
},
},
{
key: "buildInstrumentMarkup",
value: function (t) {
return t
.map(function (t) {
var e = t.Instrument.HasAssetIcon
? ''
)
: '"
);
return '\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t'
.concat(
e,
'\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t'
)
.concat(
t.Instrument.Symbol,
'\n\t\t\t\t\t\t\t\t\t'
)
.concat(
t.Instrument.Name,
"\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t"
);
})
.join("");
},
},
{
key: "handleSearchSuggestions",
value: function (t) {
var e = m(t, 1)[0].target;
if (e.value !== this.lastValidQuery)
if (e.value.trim().length >= e.dataset.minChars) {
this.dom.eraseIcon.classList.remove("v2-hidden");
var n = this.validateInput(e.value),
r = n.internal,
i = n.external;
r || i
? (this.switchSearchContainers({
from: this.dom.quicklinks,
to: this.dom.results,
}),
this.dom.noresults.classList.add("v2-hidden"),
(this.lastValidQuery = e.value),
!this.fetching.external &&
i &&
this.triggerExternalSuggestions(i),
!this.fetching.internal &&
r &&
this.triggerInternalSuggestions(r))
: (this.switchSearchContainers({
from: this.dom.results,
to: this.dom.quicklinks,
}),
this.dom.noresults.classList.remove("v2-hidden"));
} else
(this.lastValidQuery = ""),
this.dom.eraseIcon.classList.add("v2-hidden"),
this.switchSearchContainers({
from: this.dom.results,
to: this.dom.quicklinks,
});
},
},
{
key: "setupSearchSuggestions",
value: function () {
var t = JSON.parse(this.dom.searchConfig.innerHTML);
(this.searchConfig = t),
(this.searchProvider = t.provider),
(this.provider = Object(d.a)(t)),
this.addEventListener(
this.dom.searchFormInput,
"keyup",
Object(i.a)(this.handleSearchSuggestions.bind(this), 500)
);
},
},
{
key: "clearSearch",
value: function () {
(this.lastValidQuery = ""),
(this.dom.searchFormInput.value = ""),
this.dom.eraseIcon.classList.add("v2-hidden"),
this.switchSearchContainers({
from: this.dom.results,
to: this.dom.quicklinks,
});
},
},
{
key: "handleCloseNav",
value: function (t) {
var e =
!this.isSearchActive ||
(t.target.closest(".navigation__search") &&
!t.target.closest(".navigation__search-close"));
this.selectedNav &&
!t.target.closest(".header") &&
this.handleCloseNavMenu(),
e ||
((this.isSearchActive = !1),
this.dom.searchContainer.classList.remove("active"),
(this.dom.searchFormInput.value = ""),
(this.lastValidQuery = ""),
this.handleCloseNavMenu());
},
},
{
key: "validateInput",
value: function (t) {
return {
internal: Object(o.a)(t, o.b.INSTRUMENT_SEARCH),
external: Object(o.a)(t, o.b.GOOGLE_SEARCH),
};
},
},
{
key: "checkAndApplyShadowOnScroll",
value: function () {
var t = window.sessionStorage;
window.scrollY > 0
? (null == t || t.setItem("isScrolled", "true"),
document.documentElement.classList.add("isScrolled"))
: (null == t || t.removeItem("isScrolled"),
document.documentElement.classList.remove("isScrolled"));
},
},
{
key: "addEventListeners",
value: function () {
var t,
e = this,
n = Object(i.a)(
this.checkAndApplyShadowOnScroll.bind(this),
100,
!1
);
this.addEventListener(
this.dom.navListContainer,
"click",
this.openMobileSubNav.bind(this)
),
this.addEventListener(
this.dom.navItemsContainer,
"click",
this.resetToInitialState.bind(this)
),
this.addEventListener(
this.dom.iconsContainer,
"click",
this.handleIconClick.bind(this)
),
this.addEventListener(
this.dom.navMenu,
"click",
this.handleOpenNavMenu.bind(this)
),
this.addEventListener(
this.dom.eraseIcon,
"click",
this.clearSearch.bind(this)
),
this.addEventListener(
document,
"click",
this.handleCloseNav.bind(this)
),
this.addEventListener(
document.forms[0],
"submit",
function (t) {
var n = e.validateInput(e.dom.searchFormInput.value),
r = n.internal,
i = n.external;
r || i || t.preventDefault();
}
),
null !== (t = this.dom.searchContainer) &&
void 0 !== t &&
t.hasAttribute("data-suggestions") &&
this.addEventListener(
this.dom.searchFormInput,
"keyup",
function () {
Object(i.a)(e.handleSearchSuggestions.bind(e), 500);
}
),
window.addEventListener("scroll", function () {
n();
});
},
},
])
);
})(r.a);
},
755: function (t, e, n) {
"use strict";
function r(t, e, n) {
var r;
return function () {
for (var i = arguments.length, o = new Array(i), s = 0; s < i; s++)
o[s] = arguments[s];
var a = function () {
(r = null), n || t(o);
},
c = n && !r;
clearTimeout(r), (r = setTimeout(a, e)), c && t(o);
};
}
n.d(e, "a", function () {
return r;
});
},
756: function (t, e, n) {
"use strict";
function r(t) {
return (r =
"function" == typeof Symbol && "symbol" == typeof Symbol.iterator
? function (t) {
return typeof t;
}
: function (t) {
return t &&
"function" == typeof Symbol &&
t.constructor === Symbol &&
t !== Symbol.prototype
? "symbol"
: typeof t;
})(t);
}
function i(t, e) {
var n =
("undefined" != typeof Symbol && t[Symbol.iterator]) ||
t["@@iterator"];
if (!n) {
if (
Array.isArray(t) ||
(n = (function (t, e) {
if (t) {
if ("string" == typeof t) return o(t, e);
var n = {}.toString.call(t).slice(8, -1);
return (
"Object" === n && t.constructor && (n = t.constructor.name),
"Map" === n || "Set" === n
? Array.from(t)
: "Arguments" === n ||
/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)
? o(t, e)
: void 0
);
}
})(t)) ||
(e && t && "number" == typeof t.length)
) {
n && (t = n);
var r = 0,
i = function () {};
return {
s: i,
n: function () {
return r >= t.length
? { done: !0 }
: { done: !1, value: t[r++] };
},
e: function (t) {
throw t;
},
f: i,
};
}
throw new TypeError(
"Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."
);
}
var s,
a = !0,
c = !1;
return {
s: function () {
n = n.call(t);
},
n: function () {
var t = n.next();
return (a = t.done), t;
},
e: function (t) {
(c = !0), (s = t);
},
f: function () {
try {
a || null == n.return || n.return();
} finally {
if (c) throw s;
}
},
};
}
function o(t, e) {
(null == e || e > t.length) && (e = t.length);
for (var n = 0, r = Array(e); n < e; n++) r[n] = t[n];
return r;
}
function s(t, e) {
for (var n = 0; n < e.length; n++) {
var r = e[n];
(r.enumerable = r.enumerable || !1),
(r.configurable = !0),
"value" in r && (r.writable = !0),
Object.defineProperty(t, a(r.key), r);
}
}
function a(t) {
var e = (function (t, e) {
if ("object" != r(t) || !t) return t;
var n = t[Symbol.toPrimitive];
if (void 0 !== n) {
var i = n.call(t, e || "default");
if ("object" != r(i)) return i;
throw new TypeError("@@toPrimitive must return a primitive value.");
}
return ("string" === e ? String : Number)(t);
})(t, "string");
return "symbol" == r(e) ? e : e + "";
}
var c = new ((function () {
return (
(t = function t() {
!(function (t, e) {
if (!(t instanceof e))
throw new TypeError("Cannot call a class as a function");
})(this, t),
(this.subscriptions = {});
}),
(e = [
{
key: "publish",
value: function (t) {
if (this.subscriptions[t]) {
for (
var e = arguments.length,
n = new Array(e > 1 ? e - 1 : 0),
r = 1;
r < e;
r++
)
n[r - 1] = arguments[r];
var o,
s = i(this.subscriptions[t]);
try {
for (s.s(); !(o = s.n()).done; ) {
var a = o.value;
a.apply(void 0, n);
}
} catch (t) {
s.e(t);
} finally {
s.f();
}
}
},
},
{
key: "subscribe",
value: function (t, e) {
(this.subscriptions[t] = this.subscriptions[t] || []),
this.subscriptions[t].push(e);
},
},
{
key: "unsubscribe",
value: function (t, e) {
var n = this;
this.subscriptions[t] &&
this.subscriptions[t].forEach(function (r, i) {
r === e && n.subscriptions[t].splice(i, 1);
});
},
},
]) && s(t.prototype, e),
n && s(t, n),
Object.defineProperty(t, "prototype", { writable: !1 }),
t
);
var t, e, n;
})())();
e.a = c;
},
757: function (t, e, n) {
"use strict";
(function (t) {
n.d(e, "a", function () {
return v;
});
var r = n(756),
i = n(759),
o = n(758),
s = n(144),
a = n(755);
function c(t) {
return (c =
"function" == typeof Symbol && "symbol" == typeof Symbol.iterator
? function (t) {
return typeof t;
}
: function (t) {
return t &&
"function" == typeof Symbol &&
t.constructor === Symbol &&
t !== Symbol.prototype
? "symbol"
: typeof t;
})(t);
}
function u(t, e) {
var n = Object.keys(t);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(t);
e &&
(r = r.filter(function (e) {
return Object.getOwnPropertyDescriptor(t, e).enumerable;
})),
n.push.apply(n, r);
}
return n;
}
function l(t) {
for (var e = 1; e < arguments.length; e++) {
var n = null != arguments[e] ? arguments[e] : {};
e % 2
? u(Object(n), !0).forEach(function (e) {
d(t, e, n[e]);
})
: Object.getOwnPropertyDescriptors
? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n))
: u(Object(n)).forEach(function (e) {
Object.defineProperty(
t,
e,
Object.getOwnPropertyDescriptor(n, e)
);
});
}
return t;
}
function d(t, e, n) {
return (
(e = f(e)) in t
? Object.defineProperty(t, e, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0,
})
: (t[e] = n),
t
);
}
function h(t, e) {
for (var n = 0; n < e.length; n++) {
var r = e[n];
(r.enumerable = r.enumerable || !1),
(r.configurable = !0),
"value" in r && (r.writable = !0),
Object.defineProperty(t, f(r.key), r);
}
}
function f(t) {
var e = (function (t, e) {
if ("object" != c(t) || !t) return t;
var n = t[Symbol.toPrimitive];
if (void 0 !== n) {
var r = n.call(t, e || "default");
if ("object" != c(r)) return r;
throw new TypeError(
"@@toPrimitive must return a primitive value."
);
}
return ("string" === e ? String : Number)(t);
})(t, "string");
return "symbol" == c(e) ? e : e + "";
}
var v = (function () {
return (
(t = function t(e) {
!(function (t, e) {
if (!(t instanceof e))
throw new TypeError("Cannot call a class as a function");
})(this, t),
(this.element = e),
(this.state = void 0),
(this.events = {}),
(this.subscriptions = {}),
(this.behaviorName = Object(o.a)(
e.getAttribute("data-behavior")
)),
(this.instanceId = Object(i.a)()),
this.attachInstanceId();
}),
(e = [
{
key: "setState",
value: function (t) {
var e = this;
Object.keys(t).forEach(function (t) {
if (!{}.hasOwnProperty.call(e.state, t))
throw new Error(
""
.concat(e.behaviorName, " does not have ")
.concat(
t,
" on the state object,\n\t\t\t\t\tmake sure to define all state properties in the constructor."
)
);
}),
(this.state = l(l({}, this.state || {}), t));
},
},
{
key: "attachInstanceId",
value: function () {
this.element.setAttribute(
"data-instance",
"".concat(this.behaviorName, "__").concat(this.instanceId)
),
this.element.removeAttribute("data-instance-init");
},
},
{
key: "initDomCache",
value: function () {
var t = this;
(this.dom = {}),
Array.from(
this.element.querySelectorAll(
"[data-ref^=".concat(this.behaviorName, "]")
)
)
.filter(function (e) {
return (
e.closest(
'[data-behavior*="'.concat(t.behaviorName, '"]')
) === t.element
);
})
.forEach(function (e) {
var n = e.getAttribute("data-ref"),
r = Object(o.b)(n).split("__")[1];
r
? (t.dom[r] = e)
: console.error(
'Element cannot be cached. Reference "'.concat(
n,
'" should have the format "behavior-name__element-name"'
)
);
});
},
},
{
key: "publishBreakpointOnResize",
value: function () {
var t = this,
e =
arguments.length > 0 && void 0 !== arguments[0]
? arguments[0]
: 250;
if (!this.breakpoint) {
(this.breakpoint = Object(s.a)()),
this.publish("SITE.BREAKPOINT", this.breakpoint);
var n = Object(a.a)(function () {
var e = Object(s.a)();
t.breakpoint !== e &&
(t.publish("SITE.BREAKPOINT", e), (t.breakpoint = e));
}, e);
window.addEventListener("resize", n);
}
},
},
{
key: "addEventListener",
value: function (t, e, n) {
var r =
arguments.length > 3 &&
void 0 !== arguments[3] &&
arguments[3];
t &&
((this.events[e] = n),
t.addEventListener(e.split(".")[0], this.events[e], r));
},
},
{
key: "removeEventListener",
value: function (t, e) {
t.removeEventListener(e.split(".")[0], this.events[e]),
(this.events[e] = null),
delete this.events[e];
},
},
{
key: "publish",
value: function (t, e) {
r.a.publish(t, e);
},
},
{
key: "subscribe",
value: function (t, e) {
(this.subscriptions[t] = e), r.a.subscribe(t, e);
},
},
{
key: "unsubscribe",
value: function (t) {
r.a.unsubscribe(t, this.subscriptions[t]),
(this.subscriptions[t] = null),
delete this.subscriptions[t];
},
},
]) && h(t.prototype, e),
n && h(t, n),
Object.defineProperty(t, "prototype", { writable: !1 }),
t
);
var t, e, n;
})();
window.addEventListener("load", function () {
setTimeout(function () {
var t = document.querySelector("#navigation");
t &&
t.getBoundingClientRect().bottom === scrollY &&
window.scroll(0, 0);
}, 0);
}),
t.on("unhandledRejection", function (t, e) {
console.log("Reason for this failure is : ", t),
console.log("promise is", e);
});
}).call(this, n(203));
},
758: function (t, e, n) {
"use strict";
function r(t) {
return t.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase();
}
function i(t) {
return t.replace(/\W+(.)/g, function (t, e) {
return e.toUpperCase();
});
}
n.d(e, "a", function () {
return r;
}),
n.d(e, "b", function () {
return i;
});
},
759: function (t, e, n) {
"use strict";
n.d(e, "a", function () {
return i;
});
var r = "23456789ABDEGJKMNPQRVWXYZ";
function i() {
for (
var t =
arguments.length > 0 && void 0 !== arguments[0]
? arguments[0]
: 6,
e = "",
n = 0;
n < t;
n++
)
e += r.charAt(Math.floor(Math.random() * r.length));
return e;
}
},
760: function (t, e, n) {
"use strict";
n.d(e, "a", function () {
return r;
}),
n.d(e, "b", function () {
return i;
});
var r = function (t) {
return t && t.classList.add("v2-hidden");
},
i = function (t) {
return t && t.classList.remove("v2-hidden");
};
},
761: function (t, e, n) {
"use strict";
n.d(e, "a", function () {
return r;
});
var r = function (t, e, n) {
t.addEventListener(e, function r(i) {
t.removeEventListener(e, r), n(i);
});
};
},
762: function (t, e, n) {
"use strict";
n.d(e, "a", function () {
return s;
});
var r = n(761),
i = {
transition: {
endEvent: null,
endEventsList: {
transition: "transitionend",
OTransition: "oTransitionEnd",
MozTransition: "transitionend",
WebkitTransition: "webkitTransitionEnd",
},
},
animation: {
endEvent: null,
endEventsList: {
animation: "animationend",
OAnimation: "oAnimationEnd",
MozAnimation: "animationend",
WebkitAnimation: "webkitAnimationEnd",
},
},
},
o = function () {
var t =
arguments.length > 0 && void 0 !== arguments[0]
? arguments[0]
: "transition";
if (null !== i[t].endEvent) return i[t].endEvent;
var e = document.createElement("fakeelement");
return (
(i[t].endEvent = Object.keys(i[t].endEventsList).reduce(function (
n,
r
) {
return n || (void 0 !== e.style[r] ? i[t].endEventsList[r] : n);
},
!1)),
i[t].endEvent
);
},
s = function (t, e) {
var n =
arguments.length > 2 && void 0 !== arguments[2]
? arguments[2]
: "transition",
i =
arguments.length > 3 && void 0 !== arguments[3]
? arguments[3]
: 300,
s = o(n);
s ? Object(r.a)(t, s, e) : setTimeout(e, i);
};
},
763: function (t, e, n) {
"use strict";
function r(t) {
return Object.keys(t)
.reduce(function (e, n) {
var r = t[n];
return null != r
? e.concat(
""
.concat(encodeURIComponent(n), "=")
.concat(encodeURIComponent(r))
)
: e;
}, [])
.join("&");
}
n.d(e, "a", function () {
return r;
});
},
783: function (t, e, n) {
"use strict";
function r(t, e) {
return e.test(t) ? t.trim().toLowerCase() : "";
}
n.d(e, "a", function () {
return r;
}),
n.d(e, "b", function () {
return i;
});
var i = {
GOOGLE_SEARCH: /.*/,
INSTRUMENT_SEARCH:
/^(?!\d+$)(?:[a-zA-Z0-9][a-zA-Z0-9 \-\&\.\(\)\%]*)?$/,
};
},
784: function (t, e, n) {
"use strict";
function r(t, e, n) {
try {
var r = window.adobeDataLayer;
r &&
r.push({
event: "searched",
searchInfo: { searchQuery: t, searchHits: e, searchCategory: n },
});
} catch (t) {
console.error(
"This is issue in this operation : "
.concat(t.name, " : ")
.concat(t.message)
);
}
}
n.d(e, "a", function () {
return r;
});
},
788: function (t, e, n) {
"use strict";
n.d(e, "a", function () {
return h;
});
var r = n(763);
function i(t) {
return (i =
"function" == typeof Symbol && "symbol" == typeof Symbol.iterator
? function (t) {
return typeof t;
}
: function (t) {
return t &&
"function" == typeof Symbol &&
t.constructor === Symbol &&
t !== Symbol.prototype
? "symbol"
: typeof t;
})(t);
}
function o(t, e) {
for (var n = 0; n < e.length; n++) {
var r = e[n];
(r.enumerable = r.enumerable || !1),
(r.configurable = !0),
"value" in r && (r.writable = !0),
Object.defineProperty(t, s(r.key), r);
}
}
function s(t) {
var e = (function (t, e) {
if ("object" != i(t) || !t) return t;
var n = t[Symbol.toPrimitive];
if (void 0 !== n) {
var r = n.call(t, e || "default");
if ("object" != i(r)) return r;
throw new TypeError("@@toPrimitive must return a primitive value.");
}
return ("string" === e ? String : Number)(t);
})(t, "string");
return "symbol" == i(e) ? e : e + "";
}
var a = (function () {
return (
(t = function t(e) {
!(function (t, e) {
if (!(t instanceof e))
throw new TypeError("Cannot call a class as a function");
})(this, t),
(this.config = e),
(this.start = 1);
}),
(e = [
{
key: "reset",
value: function () {
this.start = 0;
},
},
{
key: "getOptions",
value: function () {
return {};
},
},
{
key: "getRequest",
value: function (t) {
var e = {
cx: this.config.cx,
key: this.config.key,
q: t.query,
sort: t.sortType || this.config.sort,
num: this.config.num || 10,
start: t.start || this.start,
lr: t.lr || "",
};
return {
params: e,
url: "".concat(this.config.url, "?").concat(Object(r.a)(e)),
};
},
},
{
key: "parseResponse",
value: function (t) {
return t;
},
},
]) && o(t.prototype, e),
n && o(t, n),
Object.defineProperty(t, "prototype", { writable: !1 }),
t
);
var t, e, n;
})();
function c(t) {
return (c =
"function" == typeof Symbol && "symbol" == typeof Symbol.iterator
? function (t) {
return typeof t;
}
: function (t) {
return t &&
"function" == typeof Symbol &&
t.constructor === Symbol &&
t !== Symbol.prototype
? "symbol"
: typeof t;
})(t);
}
function u(t, e) {
for (var n = 0; n < e.length; n++) {
var r = e[n];
(r.enumerable = r.enumerable || !1),
(r.configurable = !0),
"value" in r && (r.writable = !0),
Object.defineProperty(t, l(r.key), r);
}
}
function l(t) {
var e = (function (t, e) {
if ("object" != c(t) || !t) return t;
var n = t[Symbol.toPrimitive];
if (void 0 !== n) {
var r = n.call(t, e || "default");
if ("object" != c(r)) return r;
throw new TypeError("@@toPrimitive must return a primitive value.");
}
return ("string" === e ? String : Number)(t);
})(t, "string");
return "symbol" == c(e) ? e : e + "";
}
var d = (function () {
return (
(t = function t(e) {
!(function (t, e) {
if (!(t instanceof e))
throw new TypeError("Cannot call a class as a function");
})(this, t),
(this.config = e),
(this.start = 0);
}),
(e = [
{
key: "reset",
value: function () {
this.start = 0;
},
},
{
key: "getRequest",
value: function (t) {
var e,
n = {
q: t.query,
customconfig: this.config.customConfig,
mkt: this.config.market,
count: this.config.count,
offset: t.start || this.start,
setLang:
(null == t || null === (e = t.lr) || void 0 === e
? void 0
: e.split("_")[1]) || "EN",
};
return {
params: n,
url: "".concat(this.config.url, "?").concat(Object(r.a)(n)),
};
},
},
{
key: "getOptions",
value: function () {
return {
mode: "cors",
headers: { "Ocp-Apim-Subscription-Key": this.config.key },
};
},
},
{
key: "transformData",
value: function (t) {
var e,
n,
r,
i = { items: [], searchInformation: {}, queries: {} },
o =
(null == t || null === (e = t.webPages) || void 0 === e
? void 0
: e.totalEstimatedMatches) || 0,
s =
(null === (n = t.queryContext) || void 0 === n
? void 0
: n.alteredQuery) || null;
return (
s && (i.spelling = { correctedQuery: s + " bingCorrected" }),
(i.searchInformation.totalResults = o),
(i.items =
(null == t || null === (r = t.webPages) || void 0 === r
? void 0
: r.value.map(function (t) {
return {
kind: "customsearch#result",
title: t.name || "",
htmlSnippet: t.snippet || "",
link: t.url,
formattedUrl: t.displayUrl,
htmlTitle: t.name,
};
})) || []),
i
);
},
},
{
key: "parseResponse",
value: function (t) {
var e = this;
return Array.isArray(t)
? t.map(function (t) {
return e.transformData(t);
})
: this.transformData(t);
},
},
]) && u(t.prototype, e),
n && u(t, n),
Object.defineProperty(t, "prototype", { writable: !1 }),
t
);
var t, e, n;
})();
function h(t) {
switch (t.provider) {
case "bing":
return new d(t);
default:
return new a(t);
}
}
},
},
]);
//# sourceMappingURL=6-62fc5847.js.map